<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/resources/jstl_contexpath.jsp"%>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
	<head>

        <meta charset="UTF-8">
        <title>到场用户签到</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black" />
        <meta name="format-detection"content="telephone=no, email=no" />
        <meta name="keywords" content="">
        <meta name="description" content="">
        <!-- no cache -->
        <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />
        <!-- css -->
        <link rel="stylesheet" type="text/css" href="<c:url value="/resources/front/css/style.css" />" />
    </head>
    <body>
        <div class="loginp_wrap">
            <div class="logo_wrap"><img src="<c:url value="/resources/front/img/logo.png" />" /></div>
            <form id="sign_form" action="${ctx}/activity/sign/dosign" method="POST">
                <h3>请输入参加报名活动时</br>填写的手机号码</h3>
                <p><input type="number" name="dn" id="dn" ></p>
                <p class="loginp_button"><button>签到</button></p>
                <input type="hidden" name="aid" id="aid" value="${aid}" />
            </form>
            <div class="copyright">苏州知行合一网络科技有限公司提供技术支持，版权所有</div>
        </div><!-- sign_up_wrap -->
    </body>
    <script type="text/javascript" src="<c:url value="/resources/front/js/jquery-2.1.4.min.js" />" ></script>
    <script type="text/javascript" src="<c:url value="/resources/front/js/common.js" />" ></script>
    <script type="text/javascript">
        (function($){
            var ajaxStatus = true;
            $(".loginp_button").on('click',function(){
                if(ajaxStatus){
                    ajaxStatus = false;
                    var phoneNumber=/^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/,
                            idCardNo=/^\d{15}(\d{2}(\d|x))?$/i;
                    var dn = $.trim($('#dn').val());// 电话

                    if(!phoneNumber.test(dn)){
                        alert('请输入正确的手机号码!');
                        ajaxStatus = true;
                        return false;
                    }

                    $('#sign_form').submit();
                }
            })
        })(jQuery);
    </script>
</html>